package com.smalltao.sso.entity;

import com.smalltao.core.base.entity.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @author smallTao.liu
 * @version V1.0
 * @description 角色
 * @date 2018/11/19 11:27
 */
@Entity
public class Role extends BaseEntity {

    private static final long serialVersionUID = 6305200306441315301L;

    private String uid;

    private String displayName;

    private String remark;

    @Id
    @GenericGenerator(name = "generator", strategy = "uuid")
    @GeneratedValue(generator = "generator")
    @Column(length = 32)
    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}